<?php
require_once dirname(dirname(__DIR__))."/common.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\model\Topic;
use app\model\Video;
use app\cls\tom\FFmpeg;
$type=$_REQUEST['type'];
$del=$_REQUEST['del'];
$redis = SysResource::getRedis();
if(empty($type)){
    if($empty($del)){
        $k1 = REDIS_PREFIX."user_material_love_1";
        $k2 = REDIS_PREFIX."user_material_love_2";
        $k3 = REDIS_PREFIX."user_material_love_3";
        $k4 = REDIS_PREFIX."user_material_love_4";
        $k5 = REDIS_PREFIX."user_material_love_5";
        $k11=$redis->lRange($k1,0,-1);
        $k22=$redis->lRange($k2,0,-1);
        $k33=$redis->lRange($k3,0,-1);
        $k44=$redis->lRange($k4,0,-1);
        $k55=$redis->lRange($k5,0,-1);
        var_dump($k11);
        var_dump($k22);
        var_dump($k33);
        var_dump($k44);
        var_dump($k55);
    }else{
        $k1 = REDIS_PREFIX."user_material_love_del_1";
        $k2 = REDIS_PREFIX."user_material_love_del_2";
        $k3 = REDIS_PREFIX."user_material_love_del_3";
        $k4 = REDIS_PREFIX."user_material_love_del_4";
        $k5 = REDIS_PREFIX."user_material_love_del_5";
        $k11=$redis->lRange($k1,0,-1);
        $k22=$redis->lRange($k2,0,-1);
        $k33=$redis->lRange($k3,0,-1);
        $k44=$redis->lRange($k4,0,-1);
        $k55=$redis->lRange($k5,0,-1);
        var_dump($k11);
        var_dump($k22);
        var_dump($k33);
        var_dump($k44);
        var_dump($k55);
    }
}else{
    if(empty($del)){
        $k1 = REDIS_PREFIX."test_user_material_love_1";
        $k2 = REDIS_PREFIX."test_user_material_love_2";
        $k3 = REDIS_PREFIX."test_user_material_love_3";
        $k4 = REDIS_PREFIX."test_user_material_love_4";
        $k5 = REDIS_PREFIX."test_user_material_love_5";
        $k11=$redis->lRange($k1,0,-1);
        $k22=$redis->lRange($k2,0,-1);
        $k33=$redis->lRange($k3,0,-1);
        $k44=$redis->lRange($k4,0,-1);
        $k55=$redis->lRange($k5,0,-1);
        var_dump($k11);
        var_dump($k22);
        var_dump($k33);
        var_dump($k44);
        var_dump($k55);
    }else{
        $k1 = REDIS_PREFIX."test_user_material_love_del_1";
        $k2 = REDIS_PREFIX."test_user_material_love_del_2";
        $k3 = REDIS_PREFIX."test_user_material_love_del_3";
        $k4 = REDIS_PREFIX."test_user_material_love_del_4";
        $k5 = REDIS_PREFIX."test_user_material_love_del_5";
        $k11=$redis->lRange($k1,0,-1);
        $k22=$redis->lRange($k2,0,-1);
        $k33=$redis->lRange($k3,0,-1);
        $k44=$redis->lRange($k4,0,-1);
        $k55=$redis->lRange($k5,0,-1);
        var_dump($k11);
        var_dump($k22);
        var_dump($k33);
        var_dump($k44);
        var_dump($k55);
    }

}
